package com.yisu.auction.api.core.service;

import com.yisu.auction.api.domain.request.rechargePackage.RechargeRequest;
import com.yisu.auction.ewf.entity.Recharge;

/**
 * author: 赵杰
 * Business Description：充值相关业务接口
 * createTime：2017/8/19
 */
public interface IRechargeService {

    /**
     * author: 赵杰
     * Business Description：充值相关业务接口
     * @param rechargeRequest 含金额，用户memberId
     * @return
     */
    String createRechargeOrder(RechargeRequest rechargeRequest) throws InterruptedException;


    /**
     * author: 赵杰
     * Business Description：支付通知接口
     * @return
     */
    boolean notifyResult(RechargeRequest rechargeRequest);


    /**
     * author: 赵杰
     * Business Description：通过订单号获取充值订单信息
     * @param orderId
     * @return
     */
    Recharge getRechargeOrderByOrderId(String orderId);
}
